package data_structure.linklist;

/**
 * \* User: Administrator
 * <p>
 * \* Date: 2020/9/25
 * <p>
 * \* Time: 11:10
 * <p>
 * \* Description:
 * \
 */
public class LinkedList<T> {

    private Node<T> head;
    private Node<T> last;
    private int length;

    public LinkedList() {
    }

    private boolean add(T data) {return true;}


    class Node<T> {
        private T data;
        private Node<T> next;

        public Node(T data) {
            this.data = data;
        }

        public T getData() {
            return data;
        }

        public Node<T> getNext() {
            return next;
        }
    }
}
